﻿<?php
session_start();
?>
<html>
<head>
<title>Logout</title>
</head>
<body>
<?php
if (isset($_SESSION['name'])) {
	unset($_SESSION['name']);
} 
	
echo "You are logout. <br/><a href='login.php'>Login</a>";

function redirect($location, $delaytime = 0) {
    if ($delaytime>0) {    
        header( "refresh: $delaytime; url='".str_replace("&amp;", "&", $location)."'" );
    } else {
        header("Location: ".str_replace("&amp;", "&", $location));
    }    
}
?>

